home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
ip
/
ka9q
/
xobbs.arc
/
trigger.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-05-03
|
571b
|
24 lines
/*TRIGGER.C module to trigger forwarding session on XOBBS.*/
/* Jim Durham,W2XO 10-24-88*/
/* Version 1.0 */
/* Code released to the amateur radio community */
#include "xobbs.h"
main()
{
int fd;
int scmsgqid;
if((fd = open(FWDTMP,O_RDONLY,0666)) < 1){
printf("Trigger: Can't Open Forwarding Temp File\n");
exit(1);
}
read(fd,&scmsgqid,sizeof(scmsgqid));
msg.mtext[0] = 'F';
msg.mtype = (long)1;
if((msgsnd(scmsgqid,&msg,sizeof(scmsgqid),0600)) < 0)
perror("trigger:Sending F Message:");
}